package model

import "time"

type PWithdrawal struct {
	Id                 int64     `gorm:"column:id;type:int UNSIGNED;primaryKey;not null;" json:"id"`
	PId                int64     `gorm:"column:p_id;type:int UNSIGNED;comment:用户;not null;" json:"p_id"`                                                     // 用户
	WithdrawalAmount   float64   `gorm:"column:withdrawal_amount;type:decimal(10, 2);comment:提现金额;default:NULL;" json:"withdrawal_amount"`                   // 提现金额
	WithdrawalTime     time.Time `gorm:"column:withdrawal_time;type:datetime(3);comment:提现时间;not null;default:CURRENT_TIMESTAMP(3);" json:"withdrawal_time"` // 提现时间
	WithdrawalChannels string    `gorm:"column:withdrawal_channels;type:varchar(10);comment:提现渠道;default:NULL;" json:"withdrawal_channels"`                  // 提现渠道
}

func (p *PWithdrawal) TableName() string {
	return "p_withdrawal"
}
